package cn.xy.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by xiaoyuan on 2018/1/11.
 */
@Service
public class CheckUserStatus {
    /**
     * 这个bean的实现来源于dubbo的服务
     */
    @Autowired
    private  UserInterface userInterface;

    public String checkAllPersonStatus() {
        return userInterface.queryUserInfoAll();
    }

    public String checkPersonStatusByPersonNumber(String personNumber) {
        return userInterface.queryUserInfoByNumber(personNumber);
    }
}